package com.example.demo;/*
   
/**
* @program: demo
*
* @description: 多附件分片上传下载
*
* @author: kk
*
* @create: 2020-04-09 10:31
**/

import org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/file")
public class MultipartFileUploadAndDown {
    
    /*
    * @description: 
    * @param: 
    * @return: 
    * @author: keguazi
    * @date: 2020/4/9
    */
    @RequestMapping("/upload")
    public Object getMultipartFileUploadAndDown(HttpServletRequest request ,MultipartFile file, Integer chunks, Integer chunk, String name, String guid ){
    boolean isMultipart =ServletFileUpload.isMultipartContent(request);

        return null;
    }
}
